//
//  VerifyPhoneRequest.swift
//  Nahuo
//
//  Created by zang qilong on 2017/5/9.
//  Copyright © 2017年 zang qilong. All rights reserved.
//

import UIKit
import YTKNetwork

class VerifyPhoneRequest: YTKRequest {
    
    private var mobile:String
    
    init(mobile:String) {
        self.mobile = mobile
        
    }
    
    override func requestUrl() -> String {
        return "/user/check-mobile"
    }
    
    override func requestArgument() -> Any? {
        return ["mobile": self.mobile]
        
    }
    
    override func requestMethod() -> YTKRequestMethod {
        return .POST
    }
    
    override func requestHeaderFieldValueDictionary() -> [String : String]? {
        
        return NaHuoHttpUtil.sharedInstance.generateVerifyMobileHeader()
    }
    
}
